package com.njust.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.njust.domain.po.Equipment;
import org.apache.ibatis.annotations.Param;

/**
 * @Author: Grtiop
 * @Description: 设备的持久层
 * @DateTime: 2024/11/15 下午2:25
 **/
public interface EquipmentMapper extends BaseMapper<Equipment> {
    /**
    * @Description  分页查询设备
    * @param project_id
    * @return
    * @Author Grtiop
    * @Date 2024/11/15
    */
    Page<Equipment> pageQuery(int project_id);

    /**
    * @Description  查询设备是否已存在
    * @param id
    * @param name
    * @return com.njust.domain.po.Equipment
    * @Author Grtiop
    * @Date 2024/11/15
    */

    Equipment findByIdAndName(@Param("project_id")int id, @Param("equipment_name")String name);
}
